package org.raphaello.core.jobs;

import org.raphaello.Prototype.Raphaello;
import org.raphaello.core.jobs.Job;


public class StateChanger extends Job {

	public StateChanger(String id) {
		super(id);
		declareProperty("state", "State");
	}

	@Override
	public void work() {
		Raphaello.getView().transition(getState());
	}

	/* The helper methods for properties */
	
	public final String getState() {
		return (String)getProperty("state");
	}
	
}
